package com.df.bpm.service.impl;

import com.df.bpm.dto.BusinessInputDTO;
import com.df.bpm.mapper.BusinessInputDTOMapper;
import com.df.bpm.service.BusinessInputDTOService;
import com.df.common.utils.MyQueryWrapper4Like;
import com.df.common.service.impl.BaseServiceImpl;
import com.df.common.utils.CommonUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class BusinessInputDTOserviceImpl extends BaseServiceImpl<BusinessInputDTOMapper, BusinessInputDTO> implements BusinessInputDTOService {
	public final BusinessInputDTOMapper businessInputDTOMapper;

    public List<BusinessInputDTO> getList4Like(BusinessInputDTO temp) {
        if(CommonUtils.varIsBlank(temp)){
            return null;
        }
        MyQueryWrapper4Like<BusinessInputDTO> wrapper=new MyQueryWrapper4Like<>(temp);
        return businessInputDTOMapper.selectList(wrapper.stringLike(temp).eq("businessInformationIndex", temp.getBusinessInformationIndex()));
    }


}